PagerView

open class PagerView : ViewPager, RevelControl, DownloadFeedTask2.OnCompleted, DownloadFileTask2.OnCompleted, PlayedHandler

A ViewPager subclass that implements RevelControl for displaying a collection of views or "pages" representing playlist content.

PagerView manages a playlist of Source items, handling their display one at a time and providing navigation through them. It supports automatic advancement of pages, various page transformation animations, and dynamic updates to its content based on external events like RSS feed downloads.

It integrates with the RevelDigital player system for content management, playback control, and event listening.

See also

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet)
Constructor for inflating from XML.
constructor(context: Context, module: Module)
Constructor for programmatic creation.

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open inner class FixedSpeedScroller : Scroller
Link copied to clipboard

Properties

Link copied to clipboard
Cover page transformation (Not currently implemented in setPageTransformation).
Link copied to clipboard
Default page transformation (no specific animation beyond standard ViewPager swipe).
Link copied to clipboard
Depth page transformation.
Link copied to clipboard
Link copied to clipboard
Zoom out page transformation.

Functions

Link copied to clipboard
Adds a listener to be notified of playlist events.
Link copied to clipboard
open fun dispose()
Cleans up any resources used by this PagerView.
Link copied to clipboard
open fun getName(): String
Gets the unique name assigned to this control.
Link copied to clipboard
open fun getOptions(): Iterator<out Option>
Gets an iterator over the configuration s for this control.
Link copied to clipboard
open fun getPlaylist(): Playlist
Gets the associated with this control, if any.
Link copied to clipboard
open fun getSource(): Source
Gets the currently active Source item being displayed or processed.
Link copied to clipboard
open fun getType(): ModuleType
Gets the type of the underlying module or content associated with this control.
Link copied to clipboard
open fun getZIndex(): Int
Gets the Z-index (stacking order) of this control.
Link copied to clipboard
open fun initialize(module: Module)
Initializes the PagerView with the given module.
Link copied to clipboard
open fun isAutoStart(): Boolean
Checks if this control is configured to start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
open fun isStarted(): Boolean
Checks if the control is currently in a started or active operational state.
Link copied to clipboard
open fun next()
Advances to the next source in the playlist.
Link copied to clipboard
open fun onDownloadFeedCompleted(feed: Feed)
Link copied to clipboard
open fun onDownloadFileCompleted(file: File)
Link copied to clipboard
open fun previous()
Moves to the previous source in the playlist.
Link copied to clipboard
open fun registerPlayedListener(listener: PlayedListener)
Registers a listener that will be notified when a source has been played.
Link copied to clipboard
Removes a PlaylistListener from the list of listeners.
Link copied to clipboard
open fun setAutoStart(flag: Boolean)
Sets whether this control should start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
open fun setModule(module: Module)
Sets the module for this PagerView.
Link copied to clipboard
open fun setPageTransformation(transform: Int)
Sets the page transformation animation for the ViewPager.
Link copied to clipboard
open fun setSource(source: Source)
Sets and plays the specified Source in the playlist.
open fun setSource(idx: Int)
Sets and plays the source specified by playlist index (0 based).
open fun setSource(source: Source, play: Boolean)
Sets the current Source.
open fun setSource(idx: Int, play: Boolean)
Set the source by index (0 based).
Link copied to clipboard
open fun start()
Starts or resumes the active operation of this control.
Link copied to clipboard
open fun startAt(source: Source)
Starts playing at the specified Source.
open fun startAt(idx: Int)
Starts playing at the specified playlist index.
Link copied to clipboard
open fun stop()
Stops or pauses the active operation of this control.